package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RmsClient generated by hbm2java
 */
@Entity
@Table(name="rms_client"
    ,catalog="rms"
)
public class RmsClient  implements java.io.Serializable {


     private Integer clientId;
     private String clientCode;
     private String clientName;
     private String clientInformation;
     private boolean clientIsactive;
     private boolean clientIsdeleted;
     private Set<RmsUser> rmsUsers = new HashSet(0);
     private Set<RmsClientDept> rmsClientDepts = new HashSet(0);
     private Set<TckTicket> tckTickets = new HashSet(0);

    public RmsClient() {
    }

	
    public RmsClient(String clientCode, String clientName, boolean clientIsactive, boolean clientIsdeleted) {
        this.clientCode = clientCode;
        this.clientName = clientName;
        this.clientIsactive = clientIsactive;
        this.clientIsdeleted = clientIsdeleted;
    }
    public RmsClient(String clientCode, String clientName, String clientInformation, boolean clientIsactive, boolean clientIsdeleted, Set rmsUsers, Set rmsClientDepts, Set tckTickets) {
       this.clientCode = clientCode;
       this.clientName = clientName;
       this.clientInformation = clientInformation;
       this.clientIsactive = clientIsactive;
       this.clientIsdeleted = clientIsdeleted;
       this.rmsUsers = rmsUsers;
       this.rmsClientDepts = rmsClientDepts;
       this.tckTickets = tckTickets;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="CLIENT_ID", unique=true, nullable=false)
    public Integer getClientId() {
        return this.clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    @Column(name="CLIENT_CODE", nullable=false, length=10)
    public String getClientCode() {
        return this.clientCode;
    }
    
    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }
    
    @Column(name="CLIENT_NAME", nullable=false, length=50)
    public String getClientName() {
        return this.clientName;
    }
    
    public void setClientName(String clientName) {
        this.clientName = clientName;
    }
    
    @Column(name="CLIENT_INFORMATION", length=100)
    public String getClientInformation() {
        return this.clientInformation;
    }
    
    public void setClientInformation(String clientInformation) {
        this.clientInformation = clientInformation;
    }
    
    @Column(name="CLIENT_ISACTIVE", nullable=false)
    public boolean isClientIsactive() {
        return this.clientIsactive;
    }
    
    public void setClientIsactive(boolean clientIsactive) {
        this.clientIsactive = clientIsactive;
    }
    
    @Column(name="CLIENT_ISDELETED", nullable=false)
    public boolean isClientIsdeleted() {
        return this.clientIsdeleted;
    }
    
    public void setClientIsdeleted(boolean clientIsdeleted) {
        this.clientIsdeleted = clientIsdeleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rmsClient")
    public Set<RmsUser> getRmsUsers() {
        return this.rmsUsers;
    }
    
    public void setRmsUsers(Set<RmsUser> rmsUsers) {
        this.rmsUsers = rmsUsers;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rmsClient")
    public Set<RmsClientDept> getRmsClientDepts() {
        return this.rmsClientDepts;
    }
    
    public void setRmsClientDepts(Set<RmsClientDept> rmsClientDepts) {
        this.rmsClientDepts = rmsClientDepts;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rmsClient")
    public Set<TckTicket> getTckTickets() {
        return this.tckTickets;
    }
    
    public void setTckTickets(Set<TckTicket> tckTickets) {
        this.tckTickets = tckTickets;
    }




}


